package file;

import java.io.File;

/*
删除目录
 */
public class DeleteDirDemo {
    public static void main(String[] args) {
        File file = new File("demo");
        if (file.delete()){
            System.out.println("目标已删除");
        }else {
            System.out.println("目标不存在或已删除");
        }
    }
}
